/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vista;

import operacionesDB.*;
import gestion.*;
import control.*;
import java.awt.Component;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.swing.table.TableModel;
import vista.*;
import negocio.*;
import vista.AllUsuarios;

/**
 *
 * @author David
 */
public class OperaUsuario extends javax.swing.JFrame {

    ControlUsuario cu = new ControlUsuario();
    AllUsuarios a = new AllUsuarios();
    String g = null;

    /**
     * Creates new form OperaUsuario
     */
    public OperaUsuario() {
        initComponents();
        this.setLocationRelativeTo(null);
        this.init();
    }

    public void init() {
        this.idT.setEnabled(false);
        Usuario u = this.cu.buscarUsId(cu.minId());
        this.nombreT.setText(u.getNombre());
        this.apellidoT.setText(u.getApellido());
        this.telefonoT.setText(u.getTelefono());
        foto.setIcon(new javax.swing.ImageIcon(u.getFoto()));
        idT.setText(u.getId() + "");
    }

    public void persona() {
    }

    public void deshab() {
        this.nombreT.setEnabled(false);
        this.apellidoT.setEnabled(false);
        this.telefonoT.setEnabled(false);
        this.idT.setEnabled(true);
    }

    public void hab() {
        this.nombreT.setEnabled(true);
        this.apellidoT.setEnabled(true);
        this.telefonoT.setEnabled(true);
        this.idT.setEnabled(false);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        telefonoT = new javax.swing.JTextField();
        apellidoT = new javax.swing.JTextField();
        nombreT = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        foto = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        idT = new javax.swing.JTextField();
        antB = new javax.swing.JButton();
        nuevoB = new javax.swing.JToggleButton();
        modificarB = new javax.swing.JToggleButton();
        eliminarB = new javax.swing.JToggleButton();
        mosTodosB = new javax.swing.JButton();
        sigB = new javax.swing.JButton();
        Atras = new javax.swing.JButton();
        Salir = new javax.swing.JButton();
        buscarB = new javax.swing.JToggleButton();
        Foto = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        apellidoT.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                apellidoTActionPerformed(evt);
            }
        });

        jLabel2.setText("Apellido:");

        jLabel3.setText("Telefono:");

        jLabel1.setText("Nombre:");

        foto.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel4.setText("ID:");

        idT.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                idTActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(jLabel2)
                    .addComponent(jLabel3)
                    .addComponent(jLabel4))
                .addGap(36, 36, 36)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(nombreT)
                    .addComponent(apellidoT)
                    .addComponent(telefonoT)
                    .addComponent(idT, javax.swing.GroupLayout.DEFAULT_SIZE, 186, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(foto, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(26, 26, 26))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(nombreT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(apellidoT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(telefonoT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 16, Short.MAX_VALUE)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(idT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(foto, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap(11, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        antB.setText("<<");
        antB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                antBActionPerformed(evt);
            }
        });

        nuevoB.setText("Nuevo");
        nuevoB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nuevoBActionPerformed(evt);
            }
        });

        modificarB.setText("Modificar");
        modificarB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                modificarBActionPerformed(evt);
            }
        });

        eliminarB.setText("Eliminar");
        eliminarB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                eliminarBActionPerformed(evt);
            }
        });

        mosTodosB.setText("Mostrar Todos");
        mosTodosB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mosTodosBActionPerformed(evt);
            }
        });

        sigB.setText(">>");
        sigB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sigBActionPerformed(evt);
            }
        });

        Atras.setText("Atrás");
        Atras.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AtrasActionPerformed(evt);
            }
        });

        Salir.setText("Salir");
        Salir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SalirActionPerformed(evt);
            }
        });

        buscarB.setText("Buscar");
        buscarB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buscarBActionPerformed(evt);
            }
        });

        Foto.setText("Foto");
        Foto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                FotoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(Atras, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(Salir, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addComponent(antB)
                        .addGap(18, 18, 18)
                        .addComponent(nuevoB)
                        .addGap(18, 18, 18)
                        .addComponent(buscarB)
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(modificarB, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(Foto, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(18, 18, 18)
                        .addComponent(eliminarB)
                        .addGap(18, 18, 18)
                        .addComponent(mosTodosB)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 23, Short.MAX_VALUE)
                        .addComponent(sigB)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(antB)
                    .addComponent(nuevoB)
                    .addComponent(modificarB)
                    .addComponent(eliminarB)
                    .addComponent(mosTodosB)
                    .addComponent(sigB)
                    .addComponent(buscarB))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(Foto)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(Atras)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(Salir)
                .addGap(45, 45, 45))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void mosTodosBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mosTodosBActionPerformed
        // TODO add your handling code here:
        this.setVisible(false);
        this.a.setVisible(true);
    }//GEN-LAST:event_mosTodosBActionPerformed

    private void AtrasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AtrasActionPerformed
        // TODO add your handling code here:
        Principal p = new Principal();
        p.setVisible(true);
        this.setVisible(false);
    }//GEN-LAST:event_AtrasActionPerformed

    private void SalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SalirActionPerformed
        // TODO add your handling code here:
        cu.cerrarCon();
        System.exit(0);
    }//GEN-LAST:event_SalirActionPerformed

    private void nuevoBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nuevoBActionPerformed
        // TODO add your handling code here:
        if (this.nuevoB.isSelected()) {
            this.nombreT.setText(null);
            this.apellidoT.setText(null);
            this.telefonoT.setText(null);
            this.foto.setIcon(null);
            this.idT.setText(cu.maxId() + 1 + "");
            this.nuevoB.setLabel("Ejecutar");
        } else {
            if (this.nombreT.getText().isEmpty() || this.apellidoT.getText().isEmpty()
                    || this.telefonoT.getText().isEmpty()) {
                this.nuevoB.setSelected(true);
                JOptionPane.showMessageDialog(null, "No puede dejar recuadros en blanco");
            } else {

                this.cu.nueUsuario(this.nombreT.getText(), this.apellidoT.getText(), this.telefonoT.getText(),
                        g);
                this.nuevoB.setLabel("Nuevo");
            }
        }
    }//GEN-LAST:event_nuevoBActionPerformed

    private void modificarBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_modificarBActionPerformed
        // TODO add your handling code here:
        if (this.modificarB.isSelected()) {
            this.modificarB.setLabel("Ejecutar");
        } else {
            if (this.nombreT.getText().isEmpty() || this.apellidoT.getText().isEmpty()
                    || this.telefonoT.getText().isEmpty()) {
                this.modificarB.setSelected(true);
                JOptionPane.showMessageDialog(null, "No puede dejar recuadros en blanco");
            } else {
                this.cu.modificarUs(Integer.parseInt(this.idT.getText()), this.nombreT.getText(),
                        this.apellidoT.getText(), this.telefonoT.getText(), "");
                this.modificarB.setLabel("Modificar");
            }
        }
    }//GEN-LAST:event_modificarBActionPerformed

    private void idTActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_idTActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_idTActionPerformed

    private void buscarBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buscarBActionPerformed
        // TODO add your handling code here:
        if (this.buscarB.isSelected()) {
            this.deshab();
            this.idT.setText(null);
            this.buscarB.setLabel("Ejecutar");
        } else {
            if (this.idT.getText().isEmpty()) {
                this.buscarB.setSelected(false);
                JOptionPane.showMessageDialog(null, "No puede dejar recuadros en blanco");
                this.hab();
                this.buscarB.setLabel("Buscar");
                this.init();
            } else {
                if (Integer.parseInt(idT.getText()) > cu.maxId() || Integer.parseInt(idT.getText()) < 1) {
                    JOptionPane.showMessageDialog(null, "no existe el registro");
                    this.hab();
                    this.init();
                    this.buscarB.setLabel("Buscar");
                } else {
                    Usuario u = this.cu.buscarUsId(Integer.parseInt(this.idT.getText()));
                    this.nombreT.setText(u.getNombre());
                    this.apellidoT.setText(u.getApellido());
                    this.telefonoT.setText(u.getTelefono());
                    foto.setIcon(new javax.swing.ImageIcon(u.getFoto()));
                    this.hab();
                }
            }
        }
    }//GEN-LAST:event_buscarBActionPerformed

    private void eliminarBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_eliminarBActionPerformed
        // TODO add your handling code here:
        if (this.nuevoB.isSelected()) {
            this.eliminarB.setLabel("Ejecutar");
        } else {
            if (this.idT.getText().isEmpty()) {
                this.nuevoB.setSelected(true);
                JOptionPane.showMessageDialog(null, "No puede dejar recuadros en blanco");
            } else {
                cu.eliminarUsId(Integer.parseInt(idT.getText()));
                this.init();
                this.eliminarB.setLabel("Eliminar");
                this.eliminarB.setSelected(false);
            }
        }
    }//GEN-LAST:event_eliminarBActionPerformed

    private void sigBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sigBActionPerformed
        // TODO add your handling code here:
        int i = Integer.parseInt(this.idT.getText());
        i++;
        if (i > cu.maxId()) {
            i = cu.maxId();
            this.idT.setText(i + "");
            Usuario u = this.cu.buscarUsId(Integer.parseInt(this.idT.getText()));
            this.nombreT.setText(u.getNombre());
            this.apellidoT.setText(u.getApellido());
            this.telefonoT.setText(u.getTelefono());
            foto.setIcon(new javax.swing.ImageIcon(u.getFoto()));
            this.hab();
        } else {
            this.idT.setText(i + "");
            Usuario u = this.cu.buscarUsId(Integer.parseInt(this.idT.getText()));
            this.nombreT.setText(u.getNombre());
            this.apellidoT.setText(u.getApellido());
            this.telefonoT.setText(u.getTelefono());
            foto.setIcon(new javax.swing.ImageIcon(u.getFoto()));
            this.hab();
        }
    }//GEN-LAST:event_sigBActionPerformed

    private void antBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_antBActionPerformed
        // TODO add your handling code here:
        int i = Integer.parseInt(this.idT.getText());
        i--;
        if (i < 1) {
            i = 1;
            this.idT.setText(i + "");
            Usuario u = this.cu.buscarUsId(Integer.parseInt(this.idT.getText()));
            this.nombreT.setText(u.getNombre());
            this.apellidoT.setText(u.getApellido());
            this.telefonoT.setText(u.getTelefono());
            foto.setIcon(new javax.swing.ImageIcon(u.getFoto()));
            this.hab();
        } else {
            this.idT.setText(i + "");
            Usuario u = this.cu.buscarUsId(Integer.parseInt(this.idT.getText()));
            this.nombreT.setText(u.getNombre());
            this.apellidoT.setText(u.getApellido());
            this.telefonoT.setText(u.getTelefono());
            foto.setIcon(new javax.swing.ImageIcon(u.getFoto()));
            this.hab();
        }
    }//GEN-LAST:event_antBActionPerformed

    private void apellidoTActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_apellidoTActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_apellidoTActionPerformed

    private void FotoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_FotoActionPerformed
        // TODO add your handling code here:
        if (this.nuevoB.isSelected()) {
            JFileChooser j = new JFileChooser();
            j.showOpenDialog(null);
            g = j.getSelectedFile().getPath();
            this.foto.setIcon(new javax.swing.ImageIcon(g));
        } else if (this.modificarB.isSelected()) {
            JFileChooser j = new JFileChooser();
            j.showOpenDialog(null);
            String k = j.getSelectedFile().getPath();
            int i = Integer.parseInt(this.idT.getText());
            System.out.println(k + " " + i);
            cu.modificarFotoUs(k, i);
            Usuario u = this.cu.buscarUsId(Integer.parseInt(this.idT.getText()));
            this.nombreT.setText(u.getNombre());
            this.apellidoT.setText(u.getApellido());
            this.telefonoT.setText(u.getTelefono());
            foto.setIcon(new javax.swing.ImageIcon(u.getFoto()));
            nuevoB.setSelected(false);
            modificarB.setSelected(false);
            this.modificarB.setText("Modificar");
        } else {
            JOptionPane.showMessageDialog(null, "No es posible cambiar la foto");
            nuevoB.setSelected(false);
            modificarB.setSelected(false);
            this.modificarB.setText("Modificar");
        }
    }//GEN-LAST:event_FotoActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(OperaUsuario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(OperaUsuario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(OperaUsuario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(OperaUsuario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new OperaUsuario().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton Atras;
    private javax.swing.JButton Foto;
    private javax.swing.JButton Salir;
    private javax.swing.JButton antB;
    private javax.swing.JTextField apellidoT;
    private javax.swing.JToggleButton buscarB;
    private javax.swing.JToggleButton eliminarB;
    private javax.swing.JLabel foto;
    private javax.swing.JTextField idT;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JToggleButton modificarB;
    private javax.swing.JButton mosTodosB;
    private javax.swing.JTextField nombreT;
    private javax.swing.JToggleButton nuevoB;
    private javax.swing.JButton sigB;
    private javax.swing.JTextField telefonoT;
    // End of variables declaration//GEN-END:variables
}
